10440 IF NOT((X$>=CHR$(&H30) AND X$=<CHR$(&H39)) OR X$=CHR$(&H2E)) THEN *SU2
10450 WW$=WW$+X$:IF LEN(WW$)<10 THEN PRINT X$;:XXW=XXW+1
10460 *SU2 GOSUB *INKEY
10470 IF X$="終了" THEN KSW=2:GOTO *SU3
10480 IF X$=CHR$(&H1B) THEN ESCSW=1:GOTO *SU3
10490 IF NOT(X$=>CHR$(&H1C) AND X$=<CHR$(&H1F)) THEN *SU1
10500 OSUINP=VAL(WW$)
10510 LOCATE XSUINP+28,YSUINP
10520 IF OSUINP>99999! THEN PRINT "*********"; ELSE PRINT USING "#####.###";OSUINP;
10530 *SU3 RETURN
10600 'メッマセージルーチン
10610 *MES
10620 MESWD$(MESLN,MESSP(MESLN))=MESWD$
10630 MESCL(MESLN,MESSP(MESLN))=MESCL
10640 LOCATE 0,MESLN+20:COLOR MESCL:
10650 PRINT USING "& &";MESWD$;:COLOR 7:MESCL=7
10660 GOTO *MESEXIT
10670 *MPUSH
10680 FOR MI=1 TO 3
10690 IF MESLN=0 OR MESLN=MI THEN MESSP(MI)=(MESSP(MI)+1) MOD 11
10700 NEXT MI
10710 GOTO *MESEXIT
10720 *MPOP
10730 FOR MI=1 TO 3
10740 IF MESLN=0 OR MESLN=MI THEN MESSP(MI)=(MESSP(MI)+10) MOD 11:COLOR MESCL(MI,MESSP(MI)):LOCATE 0,MI+20:PRINT USING "& &";MESWD$(MI,MESSP(MI));:COLOR 7
10860 *TBD0 TP=((TJ-1) \ C30)+1:IF TP=TOP THEN *TBD2
10870 *TBD01 CLS 2:TI=(TP-1)*C30+1
10880 *TBD12 LOCATE TX+40*(((TI-1) \ C15) MOD 2),TY+((TI-1) MOD C15)
10890 PRINT USING "####";JG(TI,1);:COLOR JG(TI,2):PRINT "●";:COLOR 7
10900 IF JG(TI,0)=1 THEN PRINT KONDATEMEI$(JG(TI,1));
10910 IF JG(TI,0)=2 THEN PRINT CHORIMEI$(JG(TI,1));
10920 IF JG(TI,0)=3 THEN PRINT SYOKUHINMEI$(JG(TI,1));
10930 LOCATE TX+40*(((TI-1) \ C15)MOD 2)+28,TY+(TI-1) MOD C15
10940 IF JG(TI,3)>99999! THEN PRINT "*********"; ELSE PRINT USING "#####.###";JG(TI,3);
10950 IF (TI MOD C30)=0 OR TI=TJL THEN *TBD3 ELSE TI=TI+1:GOTO *TBD12
10960 *TBD2 LOCATE TX+40*(((TOJ-1) \ C15) MOD 2),TY+(TOJ-1) MOD C15
10970 PRINT USING "####";JG(TOJ,1);:COLOR JG(TOJ,2):PRINT "●";:COLOR 7:GOTO *TBD3
10980 *TBD3 TXX=TX+40*(((TJ-1) \ C15) MOD 2):TYY=TY+(TJ-1) MOD C15
10985 LOCATE TXX,TYY
10990 COLOR JG(TJ,2):PRINT USING "####";JG(TJ,1);:PRINT "○";:COLOR 7
10991 MESLN=2
10992 IF JG(TJ,0)=3 THEN MESWD$="食品の重量を入力してください。"
10993 IF JG(TJ,0)=2 THEN MESWD$="調理の単位を入力してください。"
10994 IF JG(TJ,0)=1 THEN MESWD$="献立の単位を入力してください。"
10995 GOSUB *MES
11000 *TBD4 GOSUB *INKEY
11010 IF X$>=CHR$(&H1C) AND X$<=CHR$(&H1F) THEN *TBD5
11020 IF X$="PF2" THEN KSW=0:GOTO *TBDE
11030 IF X$="終了" THEN KSW=2:GOTO *TBDE '復帰
11040 IF X$="PF1" THEN GOSUB 3160:KSW=1:GOTO *TBDE'テーブルクリア
11050 IF (X$=CHR$(&H1B) OR X$="明細") AND JG(TJ,0)=1 THEN IX1=JG(TJ,1):KCLN=JG(TJ,2):GOSUB *FKR:TOP=0:GOTO *TBD51
11060 IF (X$=CHR$(&H1B) OR X$="明細") AND JG(TJ,0)=2 THEN IX2=JG(TJ,1):CCLN=JG(TJ,2):GOSUB *FCR:TOP=0:GOTO *TBD51
11070 IF (X$=CHR$(&H1B) OR X$="明細") AND JG(TJ,0)=3 THEN GOTO *TBD4
11080 IF (X$>=CHR$(&H30) AND X$<=CHR$(&H39)) OR X$=CHR$(&H2E) THEN GOSUB *TBK:IF CSJ=0 THEN TJ=TJ-1:TJL=TJL-1:IF TJL=0 THEN *TBDE ELSE TOP=0:GOTO *TBD51 ELSE *TBD5